<style scoped lang="scss">
.index {
  height: 100%;

  .app {
    width: 10rem;
    display: flex;
  }

  .app-left {
    width: 3.2rem;
    background: #fff; // 简化 background-color 为 background

    ul {
      list-style: none;
      margin: 0; // 添加默认外边距重置
      padding: 0; // 添加默认内边距重置

      li {
        color: #323233;
        font-size: 0.3733rem;
        cursor: pointer;
        padding: 0.3733rem 0.32rem;
      }
    }
  }

  .app-right {
    width: 6.8rem;
    height: 100%;
    display: flex;
    // 修正类名拼写错误
    .app-right-top {
      width: 6rem;
      height: 1.0667rem;
      padding: 0 0.4267rem;
      color: #ff6040;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0.2rem 0;

      p {
        font-size: 14px;
        margin: 0; // 添加默认外边距重置
      }

      span {
        display: inline-block;
        width: 1.6rem;
        height: 0.0133rem;
        background: #ff6040; // 简化 background-color 为 background
      }
    }

    .app-right-box {
      width: 2.2133rem;
      height: 3.1467rem;
      border: 1px solid #ccc;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
      /* 移除 float，后续可考虑使用 flex 布局替代 */

      img {
        width: 1.6rem;
        height: 1.6rem;
      }

      p {
        font-size: 0.32rem;
        color: #646566;
        margin: 0; // 添加默认外边距重置
      }
    }
  }
}
</style>
<template>
  <div class="category">
    <div class="index">
      <div class="app">
        <div class="app-left">
          <ul>
            <li>
              全部
            </li>
          </ul>
        </div>
        <div class="app-right">
          <!-- 修正类名拼写错误 -->
          <div class="app-right-top">
            <span></span>
            <p>
              大家电
            </p>
            <span></span>
          </div>
          <div class="app-right-box">
            <img src="http://43.138.15.137:4000//uploads/category/a740dc80-9674-11ea-b348-a734901db180.jpg" alt="">
            <p>
              电视
            </p>
          </div>
          <div class="app-right-box">
            <img src="http://43.138.15.137:4000//uploads/category/a740dc80-9674-11ea-b348-a734901db180.jpg" alt="">
            <p>
              电视
            </p>
          </div>
          <div class="app-right-box">
            <img src="http://43.138.15.137:4000//uploads/category/a740dc80-9674-11ea-b348-a734901db180.jpg" alt="">
            <p>
              电视
            </p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>